package cn.jolyoulu.common.redis.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Author: JolyouLu
 * @Date: 2023/12/31 17:01
 * @Description
 */
@Configuration
@ConfigurationProperties(value = "redis-module-config.cluster")
public class RedisClusterProperties {


    /**
     * 集群节点信息
     */
    private List<String> nodes;
    /**
     * 最大重试时间
     */
    private int maxRedirects = 5;

    public List<String> getNodes() {
        return nodes;
    }

    public void setNodes(List<String> nodes) {
        this.nodes = nodes;
    }

    public int getMaxRedirects() {
        return maxRedirects;
    }

    public void setMaxRedirects(int maxRedirects) {
        this.maxRedirects = maxRedirects;
    }
}
